import request from '@/router/axios';
// 列表
export const getList = (query) => {
  return request({
    url: '/api/blade-platform/inquiryTable/list',
    method: 'get',
    params: query
  })
}
// 删除
export const remove = (id) => {
  return request({
    url: '/api/blade-platform/inquiryTable/remove',
    method: 'post',
    params: {
      id,
    }
  })
}
// 获取问诊项
export const classification = () => {
  return request({
    url: '/api/blade-platform/inquiryTable/getclassification',
    method: 'get',
  })
}
// 新增
export const add = (row) => {
  return request({
    url: '/api/blade-platform/inquiryTable/install',
    method: 'post',
    data: row
  })
}
// 详情
export const getDetail = (id) => {
  return request({
    url: '/api/blade-platform/inquiryTable/info',
    method: 'get',
    params: {
      id,
    }
  })
}
// 更新
export const update = (row) => {
  return request({
    url: '/api/blade-platform/inquiryTable/update',
    method: 'post',
    data: row
  })
}